/*
 * @Description: 枚举常量
 * @Author: qingyang
 * @Date: 2021-01-29 11:04:50
 * @LastEditors: qingyang
 * @LastEditTime: 2023-07-25 17:51:24
 */

export * from './inventoryYear';

// 填报任务 -> 排放范围
// 排放范围（多个以英文逗号分隔）：SCOPE_ONE - 范围一；SCOPE_TWO - 范围二；SCOPE_THREE - 范围三
export enum EmissionScopeEnum {
  SCOPE_ONE = 'SCOPE_ONE',
  SCOPE_TWO = 'SCOPE_TWO',
  SCOPE_THREE = 'SCOPE_THREE'
}
export const EmissionScopeMap = {
  SCOPE_ONE: '范围一',
  SCOPE_TWO: '范围二',
  SCOPE_THREE: '范围三'
};
export const EmissionScopeOption = [
  {
    label: '范围一',
    value: 'SCOPE_ONE'
  },
  {
    label: '范围二',
    value: 'SCOPE_TWO'
  },
  {
    label: '范围三',
    value: 'SCOPE_THREE'
  }
];

// 填报任务 -> 排放类别
// 排放类别（多个以英文逗号分隔）：DIRECT_EMISSION 组织直接排放 INDIRECT_ENERGY 能源间接排放 INDIRECT_TRANSPORT 运输产生的间接排放 INDIRECT_GOODS_BUY 组织使用产品相关排放 INDIRECT_PRODUCT_USE 与产品相关间接排放 INDIRECT_OTHER 其他间接排放
export enum EmissionCategoryEnum {
  DIRECT_EMISSION = 'DIRECT_EMISSION',
  INDIRECT_ENERGY = 'INDIRECT_ENERGY',
  INDIRECT_TRANSPORT = 'INDIRECT_TRANSPORT',
  INDIRECT_GOODS_BUY = 'INDIRECT_GOODS_BUY',
  INDIRECT_PRODUCT_USE = 'INDIRECT_PRODUCT_USE',
  INDIRECT_OTHER = 'INDIRECT_OTHER'
}
export const EmissionCategoryMap = {
  DIRECT_EMISSION: '组织直接排放',
  INDIRECT_ENERGY: '能源间接排放',
  INDIRECT_TRANSPORT: '运输产生的间接排放',
  INDIRECT_GOODS_BUY: '组织使用产品相关排放',
  INDIRECT_PRODUCT_USE: '与产品相关间接排放',
  INDIRECT_OTHER: '其他间接排放'
};
export const EmissionCategoryOption = [
  {
    label: '组织直接排放',
    value: 'DIRECT_EMISSION'
  },
  {
    label: '能源间接排放',
    value: 'INDIRECT_ENERGY'
  },
  {
    label: '运输产生的间接排放',
    value: 'INDIRECT_TRANSPORT'
  },
  {
    label: '组织使用产品相关排放',
    value: 'INDIRECT_GOODS_BUY'
  },
  {
    label: '与产品相关间接排放',
    value: 'INDIRECT_PRODUCT_USE'
  },
  {
    label: '其他间接排放',
    value: 'INDIRECT_OTHER'
  }
];

/**
 * 新因子库
 */
// 因子类型 枚举
export enum factorTypeEnumx {
  MATERIAL = '材料',
  ELECTRICITY = '电力',
  HEAT = '热力',
  COAL = '煤',
  FUEL_OIL = '燃料油',
  FUEL_GAS = '燃料气',
  OTHER = '其他'
}
export const factorTypeOptionx = [
  {
    label: '材料',
    value: 'MATERIAL'
  },
  {
    label: '电力',
    value: 'ELECTRICITY'
  },
  {
    label: '热力',
    value: 'HEAT'
  },
  {
    label: '煤',
    value: 'COAL'
  },
  {
    label: '燃料油',
    value: 'FUEL_OIL'
  },
  {
    label: '燃料气',
    value: 'FUEL_GAS'
  },
  {
    label: '其他',
    value: 'OTHER'
  }
];

/**
 * 因子来源类型 enum
 */
export enum FactorSourceTypeEnum {
  INTERNATIONAL_EF = '国际排放系数',
  NATIONAL_EF = '国家排放系数',
  REGION_EF = '区域排放系数',
  PRODUCER_EF = '制造商提供系数',
  TECH_EXP_COEFFICIENT_EF = '同制程/设备经验系数',
  MEASUREMENT_EF = '测量/质量平衡所得系数'
}

/**
 * 因子来源类型 map
 */
export const FactorSourceTypeMap = {
  INTERNATIONAL_EF: '国际排放系数',
  NATIONAL_EF: '国家排放系数',
  REGION_EF: '区域排放系数',
  PRODUCER_EF: '制造商提供系数',
  TECH_EXP_COEFFICIENT_EF: '同制程/设备经验系数',
  MEASUREMENT_EF: '测量/质量平衡所得系数'
};

/**
 * 因子来源类型 option
 */
export const FactorSourceTypeOption = [
  {
    label: '国际排放系数',
    value: 'INTERNATIONAL_EF'
  },
  {
    label: '国家排放系数',
    value: 'NATIONAL_EF'
  },
  {
    label: '区域排放系数',
    value: 'REGION_EF'
  },
  {
    label: '制造商提供系数',
    value: 'PRODUCER_EF'
  },
  {
    label: '同制程/设备经验系数',
    value: 'TECH_EXP_COEFFICIENT_EF'
  },
  {
    label: '测量/质量平衡所得系数',
    value: 'MEASUREMENT_EF'
  }
];

export enum emissionCategoryEnum {
  DIRECT_EMISSION = '组织直接排放',
  INDIRECT_ENERGY = '能源间接排放',
  INDIRECT_TRANSPORT = '运输产生的间接排放',
  INDIRECT_GOODS_BUY = '组织使用产品相关排放',
  INDIRECT_PRODUCT_USE = '其他间接排放',
  INDIRECT_OTHER = '其他间接排放'
}

//排放源类型
export enum emissionTypeEnum {
  INDUSTRIAL_FURNACE = '工业炉窑',
  EQUIPMENT = '机械设备',
  KINETIC_ENERGY_GENERATING_EQUIPMENT = '动能发生设备',
  ELECTRICAL_EQUIPMENT = '电器设备',
  LIFTING_EQUIPMENT = '起重设备',
  TRANSPORTATION_EQUIPMENT = '运输设备',
  AUXILIARY_PRODUCTION = '辅助生产设备',
  MATERIAL = '材料',
  WASTE = '废弃物',
  OTHER = '其他'
}
export const emissionTypeOption = [
  {
    label: '工业炉窑',
    value: 'INDUSTRIAL_FURNACE'
  },
  {
    label: '机械设备',
    value: 'EQUIPMENT'
  },
  {
    label: '动能发生设备',
    value: 'KINETIC_ENERGY_GENERATING_EQUIPMENT'
  },
  {
    label: '电器设备',
    value: 'ELECTRICAL_EQUIPMENT'
  },
  {
    label: '起重设备',
    value: 'LIFTING_EQUIPMENT'
  },
  {
    label: '运输设备',
    value: 'TRANSPORTATION_EQUIPMENT'
  },
  {
    label: '辅助生产设备',
    value: 'AUXILIARY_PRODUCTION'
  },
  {
    label: '材料',
    value: 'MATERIAL'
  },
  {
    label: '废弃物',
    value: 'WASTE'
  },
  {
    label: '其他',
    value: 'OTHER'
  }
];

// 盘查周期类型
export enum PeriodTypeEnum {
  // 年度
  YEAR = 'YEAR',
  // 月度
  MONTH = 'MONTH'
}

export enum fillFrequencyEnum {
  MONTH = '每月',
  YEAR = '每年'
}

//配置状态
export const configStatusTypeOption = [
  {
    label: '创建中',
    value: 'NEW'
  },
  {
    label: '生效中',
    value: 'ON'
  },
  {
    label: '已终止',
    value: 'OFF'
  }
];
export enum configStatusTypeEnum {
  NEW = 'NEW', // 创建中
  ON = 'ON', // 生效中
  OFF = 'OFF' // 已终止
}

export const fillFrequencyOptions = [
  {
    label: '月',
    value: 'MONTH'
  },
  {
    label: '年',
    value: 'YEAR'
  }
];

export enum MeterTypeEnum {
  ELECTRIC = 'ELECTRIC',
  GAS = 'GAS',
  WATER = 'WATER',
  HEATING = '、HEATING'
}
export const MeterTypeEnumMap = {
  '': '无',
  ELECTRIC: '电表',
  GAS: '天然气表',
  WATER: '水表'
};
export const MeterTypeOption = [
  {
    label: MeterTypeEnumMap[''],
    value: ''
  },
  {
    label: MeterTypeEnumMap.ELECTRIC,
    value: 'ELECTRIC'
  },
  {
    label: MeterTypeEnumMap.GAS,
    value: 'GAS'
  }
  // {
  //   label: MeterTypeEnumMap.WATER,
  //   value: 'WATER'
  // }
];
